﻿@model INTREPWEB.Models.EmbarqueViewModel
@{
    if (IsAjax)
    {
        Layout = null;
    }  
}
<div class="editor-field">
    @Html.DropDownListFor(x => x.NavioId, ViewBag.Navios as SelectList)
    @Ajax.ActionLink("+", "Criar", "Navio", new AjaxOptions { OnBegin = "criaModal('criarnavio')", UpdateTargetId = "criarnavio", OnSuccess = "$.modalPopup('criarnavio', 'Navio')" })
    <br />
    @Html.ValidationMessageFor(model => model.NavioId)
</div>